@extends('default.layouts.adminPublic')
@section('title', '修改企业注册信息')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/vendor/jedate/skin/jedate.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/admin/indexList.css')}}">
    <style>
        .wicon{background-image: url("");
            background-repeat:no-repeat; background-position:right center;  cursor:pointer;}
    </style>
    @endsection
    @section('content')
            <!--导航开始-->
    <div class="crumb_warp">
        <i class="fa fa-home"></i> <a href="{{url('admin/com_user_reg')}}">首页</a> &raquo; 用户管理
    </div>
    <!--导航结束-->
    <!--结果集标题与导航组件 开始-->
    <div class="con">

        <div class="conMain">
            <div class="result_wrap">
                <div class="search">
                    <form name="Formso" id="Formso" action="{{url('admin/com_user_reg')}}" method="post">
                        {{csrf_field()}}
                        <span>关键字：</span>
                        <span><input name="keyword" class="keyword" id="keyword" placeholder="请输入用户名或者手机号码" type="text"></span>
                        <span><input name="submit" class="skeyword" value="搜索" type="submit"></span>
                    </form>
                </div>
                <div class="message"><p>注册用户信息修改.</p></div>
            </div>

            <div class="conInfo">
                <div class="manage" style="padding: 0; margin-bottom: 10px;">
                    @if(count($errors)>0)
                        <div class="mark">
                            @if(is_object($errors))
                                @foreach($errors->all() as $error)
                                    <p>{{$error}}</p>
                                @endforeach
                            @else
                                <p>{{$errors}}</p>
                            @endif
                        </div>
                    @endif
                </div>
                <div class="conAddList">
                    <form action="{{url('admin/com_user_store')}}" method="post" name="resumeForm" id="resumeForm">
                        <input type="hidden" name="uid" value="{{$user->uid}}">
                        {{csrf_field()}}
                        <dl>
                            <dt><i class="require">*</i>用户名：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->username}}" name="username" id="username"></dd>
                        </dl>
                        <dl>
                            <dt><i class="require">*</i>密码：</dt>
                            <dd><input type="text" class="inpText" name="password" value="{{$user->password}}" id="password"></dd>
                        </dl>
                        <dl>
                            <dt>手机号码：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->mobile}}" name="mobile" id="mobile"></dd>
                        </dl>
                        <dl>
                            <dt>联系人：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->contacts}}" name="contacts" id="contacts"></dd>
                        </dl>
                        <dl>
                            <dt>公司名称：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->company_name}}" name="company_name" id="company_name"></dd>
                        </dl>
                        <dl>
                            <dt>邮箱地址：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->email}}" name="email" id="email"></dd>
                        </dl>
                        <dl>
                            <dt>固定电话：</dt>
                            <dd>
                                <input type="text" class="inpText"  value="{{ $user->phone }}" name="phone" id="phone"  placeholder="固定电话必须以区号开头">
                                <span>注：固定电话必须以区号开头</span>
                            </dd>
                        </dl>
                        <dl>
                            <dt>会员到期时间：</dt>
                            <dd><input class="workinput wicon" name="viptime" style="width:260px;"   value="{{ $user->viptime }}"  id="viptime" type="text" placeholder="请选择会员到期时间" readonly></dd>
                        </dl>
                        <dl>
                            <dt>会员内简历数：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" value="{{$user->vip_resume_number}}" name="vip_resume_number" id="vip_resume_number"></dd>
                        </dl>

                        <dl>
                            <dt>会员期内积分：</dt>
                            <dd><input type="text" class="inpText"  style="width:140px;" value="{{$user->vip_integral}}" name="vip_integral" id="vip_integral"></dd>
                        </dl>
                        <dl>
                            <dt>会员内职位数：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="vip_post_number" value="{{$user->vip_post_number}}" id="vip_post_number"></dd>
                        </dl>
                        <dl>
                            <dt>非会员简历数：</dt>
                            <dd><input type="text" class="inpText"  style="width:140px;" value="{{$user->resume_number}}" name="resume_number" id="resume_number"></dd>
                        </dl>
                        <dl>
                            <dt>非会员积分：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;"  value="{{$user->integral}}" name="integral" id="integral"></dd>
                        </dl>
                        <dl>
                            <dt>绑定邮箱：</dt>
                            <dd>
                                <input name="email_id" id="emailbinded"  style="width: 16px; height: 16px; margin: 0px;" type="radio"   value="1">
                                <label for="emailbinded">已绑定</label>
                                <input name="email_id"  id="emailunbound" style="width: 16px; height: 16px; margin: 0px;" type="radio" value="0">
                                <label for="emailunbound">未绑定</label>
                            </dd>
                        </dl>
                        <dl>
                            <dt>手机绑定：</dt>
                            <dd>
                                <input name="mobile_id" id="mobilebinded"  style="width: 16px; height: 16px; margin: 0px;" type="radio" value="1">
                                <label for="mobilebinded">已绑定</label>
                                <input name="mobile_id"  id="mobileunbound" style="width: 16px; height: 16px; margin: 0px; "  type="radio" value="0">
                                <label for="mobileunbound">未绑定</label>
                            </dd>
                        </dl>
                        <dl>
                            <dt>QQ绑定：</dt>
                            <dd><input type="text" class="inpText" name="qqopenid" value="{{$user->qqopenid}}" id="qqopenid"></dd>
                        </dl>
                        <dl>
                            <dt>微信绑定：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->wechatopenid}}" name="wechatopenid" id="wechatopenid"></dd>
                        </dl>
                        <dl>
                            <dt>微信公众平台：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->wechatmpopenid}}" name="wechatmpopenid" id="wechatmpopenid"></dd>
                        </dl>
                        <dl>
                            <dt>微信unionid：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->wechatunionid}}" name="wechatunionid" id="wechatunionid"></dd>
                        </dl>
                        <dl>
                            <dt>IOS绑定：</dt>
                            <dd><input type="text" class="inpText"  value="{{$user->device_token}}" name="device_token" id="device_token"></dd>
                        </dl>
                        <dl>
                            <dt>注册时间：</dt>
                            <dd>{{$user->regtime}}</dd>
                        </dl>
                        <dl>
                            <dt></dt>
                            <dd>
                                <input type="submit" class="sub" value="修改">
                                <input type="button" class="sub but" onclick="history.go(-1)" value="返回">
                            </dd>
                        </dl>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/vendor/jedate/jquery.jedate.min.js')}}"></script>
    <script>
        $(function(){
            $("#resumeForm").find("input[name='email_id'][value='{{$user->email_id}}']").attr("checked",true);
            $("#resumeForm").find("input[name='mobile_id'][value='{{$user->mobile_id}}']").attr("checked",true);
        });
        //蓝色风格
        $.jeDate('#viptime',{
            format: 'YYYY-MM-DD hh:mm:ss',
//            isinitVal:true,
            festival: true
        });
    </script>
@endsection

